﻿using System;
using System.Collections.Generic;
using IllusionUtility.SetUtility;
using UnityEngine;

// Token: 0x0200056F RID: 1391
public class ShapeInfoSample : global::ShapeInfoBase
{
	// Token: 0x0600218B RID: 8587 RVA: 0x0012FDBC File Offset: 0x0012DFBC
	public override void InitShapeInfo(string assetBundleAnmKey, string assetBundleCategory, string resAnmKeyInfoPath, string resCateInfoPath, Transform trfObj)
	{
		Dictionary<string, int> dictionary = new Dictionary<string, int>();
		global::ShapeInfoSample.DstBoneName[] array = (global::ShapeInfoSample.DstBoneName[])Enum.GetValues(typeof(global::ShapeInfoSample.DstBoneName));
		foreach (global::ShapeInfoSample.DstBoneName dstBoneName in array)
		{
			dictionary[dstBoneName.ToString()] = (int)dstBoneName;
		}
		Dictionary<string, int> dictionary2 = new Dictionary<string, int>();
		global::ShapeInfoSample.SrcBoneName[] array3 = (global::ShapeInfoSample.SrcBoneName[])Enum.GetValues(typeof(global::ShapeInfoSample.SrcBoneName));
		foreach (global::ShapeInfoSample.SrcBoneName srcBoneName in array3)
		{
			dictionary2[srcBoneName.ToString()] = (int)srcBoneName;
		}
		base.InitShapeInfoBase(assetBundleAnmKey, assetBundleCategory, resAnmKeyInfoPath, resCateInfoPath, trfObj, dictionary, dictionary2);
		this.initEnd = true;
	}

	// Token: 0x0600218C RID: 8588 RVA: 0x0012FE84 File Offset: 0x0012E084
	public override void Update()
	{
		if (!this.initEnd)
		{
			return;
		}
		this.dictDstBoneInfo[0].trfBone.SetLocalScale(this.dictSrcBoneInfo[0].vctScl.x, this.dictSrcBoneInfo[0].vctScl.y, this.dictSrcBoneInfo[0].vctScl.z);
		this.dictDstBoneInfo[1].trfBone.SetLocalScale(this.dictSrcBoneInfo[1].vctScl.x, this.dictSrcBoneInfo[1].vctScl.y, this.dictSrcBoneInfo[1].vctScl.z);
		this.dictDstBoneInfo[2].trfBone.SetLocalScale(this.dictSrcBoneInfo[1].vctScl.x * this.dictSrcBoneInfo[2].vctScl.x, this.dictSrcBoneInfo[1].vctScl.y, this.dictSrcBoneInfo[1].vctScl.z * this.dictSrcBoneInfo[3].vctScl.z);
		this.dictDstBoneInfo[3].trfBone.SetLocalScale(this.dictSrcBoneInfo[1].vctScl.x * this.dictSrcBoneInfo[4].vctScl.x, this.dictSrcBoneInfo[1].vctScl.y, this.dictSrcBoneInfo[1].vctScl.z * this.dictSrcBoneInfo[5].vctScl.z);
		this.dictDstBoneInfo[4].trfBone.SetLocalPositionX(this.dictSrcBoneInfo[6].vctPos.x);
		this.dictDstBoneInfo[4].trfBone.SetLocalPositionY(this.dictSrcBoneInfo[7].vctPos.y);
		this.dictDstBoneInfo[4].trfBone.SetLocalRotation(0f, 0f, this.dictSrcBoneInfo[8].vctRot.z);
		this.dictDstBoneInfo[4].trfBone.SetLocalScale(this.dictSrcBoneInfo[1].vctScl.x, this.dictSrcBoneInfo[1].vctScl.y, this.dictSrcBoneInfo[1].vctScl.z);
		this.dictDstBoneInfo[5].trfBone.SetLocalPositionY(this.dictSrcBoneInfo[9].vctPos.y);
		this.dictDstBoneInfo[5].trfBone.SetLocalRotation(this.dictSrcBoneInfo[10].vctRot.x, 0f, 0f);
		this.dictDstBoneInfo[5].trfBone.SetLocalScale(1f, this.dictSrcBoneInfo[10].vctScl.y, 1f);
	}

	// Token: 0x040029A3 RID: 10659
	protected bool initEnd;

	// Token: 0x02000570 RID: 1392
	public enum DstBoneName
	{
		// Token: 0x040029A5 RID: 10661
		cf_J_Root,
		// Token: 0x040029A6 RID: 10662
		cf_J_Root_s,
		// Token: 0x040029A7 RID: 10663
		cf_J_Spine01_s,
		// Token: 0x040029A8 RID: 10664
		cf_J_Spine02_s,
		// Token: 0x040029A9 RID: 10665
		cf_J_Spine03_s,
		// Token: 0x040029AA RID: 10666
		cf_J_Spine02_ss
	}

	// Token: 0x02000571 RID: 1393
	public enum SrcBoneName
	{
		// Token: 0x040029AC RID: 10668
		cf_J_Root_height,
		// Token: 0x040029AD RID: 10669
		cf_J_Root_1,
		// Token: 0x040029AE RID: 10670
		cf_J_Spine01_s_sx,
		// Token: 0x040029AF RID: 10671
		cf_J_Spine01_s_sz,
		// Token: 0x040029B0 RID: 10672
		cf_J_Spine02_s_sx,
		// Token: 0x040029B1 RID: 10673
		cf_J_Spine02_s_sz,
		// Token: 0x040029B2 RID: 10674
		cf_J_Spine03_s_tx,
		// Token: 0x040029B3 RID: 10675
		cf_J_Spine03_s_ty,
		// Token: 0x040029B4 RID: 10676
		cf_J_Spine03_s_rz,
		// Token: 0x040029B5 RID: 10677
		cf_J_Spine02_ss_ty,
		// Token: 0x040029B6 RID: 10678
		cf_J_Spine02_ss_rx
	}
}
